package io.a;

import java.time.Instant;
import java.time.LocalDateTime;
import java.time.ZoneId;
import java.time.ZonedDateTime;

public class Main {


    public static void main(String[] args) {
        System.out.println(System.currentTimeMillis());
        System.out.println(LocalDateTime.now());
        System.out.println(ZonedDateTime.now(ZoneId.systemDefault()));
        System.out.println(ZonedDateTime.now(ZoneId.of("GMT")));
        System.out.println(Instant.now());
        System.out.println(Instant.ofEpochMilli(System.currentTimeMillis()).atZone(ZoneId.systemDefault()).toInstant());
        System.out.println(Instant.ofEpochMilli(System.currentTimeMillis()).atZone(ZoneId.of("GMT")).toInstant());

        String s = "universal/task/app34908d81bb784f81a2af4b9d1228e5ff.jpg";
        System.out.println(s.substring(s.lastIndexOf('/') + 1, s.lastIndexOf(".")));
    }


}
